package io.renren.modules.sys.dao;

import com.baomidou.mybatisplus.mapper.BaseMapper;
import io.renren.modules.sys.entity.DepotitemEntity;

import java.util.HashMap;
import java.util.List;

/**
 * 单据子表
 * 
 * @author chenshun
 * @email sunlightcs@gmail.com
 * @date 2018-11-22 14:29:36
 */
public interface DepotitemDao extends BaseMapper<DepotitemEntity> {

    Double findPriceByType(HashMap<String,Object> map);

    Integer findByType(HashMap<String,Object> map);

    Double buyOrSale(HashMap<String,Object> map);

    Integer findGiftByType(HashMap<String,Object> map);

    Integer findByTypeAndMaterialId(HashMap<String,Object> map);

    List<HashMap> findDetailByTypeAndMaterialId(HashMap<String,Object>map);
}
